home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer Helper 1: Phil & Dave's Excellent CD
/
Excellent CD HFS.raw
/
Moof
/
Goodies
/
MPW Goodies
/
MPW Goodies⁄DTS
/
Docs & Help Files
/
OSErr Notes
< prev
next >
Wrap
Text File
|
2022-08-05
|
2KB
|
51 lines
OSErr … an MPW tool to find the meaning of Macintosh result codes.
The problem is that Macintosh result codes are peppered through several
thick volumes of information. This tool is an attempt to put them into
one place. In addition, the tool can be modified to include result codes
added to MacOS.
COPYRIGHT:
Copyright, 1988. Wynn Wagner III. All rights reserved.
This application and its associated source and documentation may be given
away. It may not be sold, and the code may not be included in any material
that is sold.
WARRANTY/GUARANTEE:
Be serious. If you break this application, you own both pieces.
INSTALLING OSErr:
Put the application "OSErr" into your MPW "Tools:" folder.
USING OSErr:
You must be running MPW.
Type "OSErr" followed by the negative number returned by a MacOS function,
then press ENTER or COMMAND-RETURN. If OSErr understands the number, it
will display its meaning using StdOut. In most cases, you will also get
some cross-reference information that tells you which Apple technical document
you can look at for more information.
MODIFYING OSErr Messages:
This requires the application REZ, available from Apple.
The error messages are contained in several 'STR#' resources. Each resource
has room for 100 messages.
To add a new message to an existing 'STR#' resource, just type the text.
If you need to add a new 'STR#' resource, you will also have to add an entry
in an Error Look Up Table resource (or 'eLUt'). The 'eLUt' is an array
that includes the bottom number of a 'STR#' resource and the 'STR#' resource
number. For example, if "STR# 4000" includes the text for errors -101 to -200,
the 'eLUt' entery would be "101,4000".
MODIFYING OSErr Source:
Requires MPW C, V3.